#include "file_download.hpp"
#include <string>
#include <glog/logging.h>
file_download::file_download(/* args */)
{
}

file_download::~file_download()
{
}
void file_download::parse_cmd(std::string type,std::string msg)
{
    int pos = msg.rfind(" ")+1;
    std::string filename = msg.substr(pos,msg.size()-pos-2);
    fp = fopen("/home/chen/cpp/demo3/build/Makefile","rb");
    if(fp)
    {
        // 连接数据通道，发送开始下载文件的指令

    }
}
